package com.zmc.product.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 库存中心的商品库存表
 * 
 * @author zmc
 * @email 
 * @date 2024-11-28 14:03:53
 */
@Data
@TableName("inventory_goods_stock")
public class InventoryGoodsStockEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 商品sku ID
	 */
	private String skuId;
	/**
	 * 销售库存
	 */
	private Long saleStockQuantity;
	/**
	 * 锁定库存
	 */
	private Long lockedStockQuantity;
	/**
	 * 已销售库存
	 */
	private Long saledStockQuantity;
	/**
	 * 库存状态，0：无库存，1：有库存
	 */
	private Integer stockStatus;
	/**
	 * 创建者
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;


}
